<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg">
        <div class="modal-content"></div>
    </div>
</div> 
<div class="portlet box green">
	<div class="portlet-title">
	    <div class="caption"><i class="fa fa-cog"></i>页面设置 &gt;  页面自定义管理 &gt;  模版管理 </div>
		<div class="tools">
			<a href="javascript:;" class="collapse right" data-original-title="" title=""> </a>
    	</div>
    	<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
			<a href="javascript:;" class="btn white btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
		</div>
	</div>
	<div class="portlet-body form">
	   	<form action="/defineTemplate/list" class="form-horizontal" method="get" id="searchForm" onsubmit="return false">
			<div class="form-body">
				<div class="row">
					<div class="col-md-3">
						<label class="col-md-4 control-label">编号</label>
						<div class="col-md-8">
					    	<input type="text" class="form-control" name="id" value="$!id" placeholder="请输入模板编号">
						</div>
					</div>
					<div class="col-md-3">
						<label class="control-label col-md-4">模板名称：</label> 
						<label class="col-md-8">
							<input type="text" class="form-control" name="name" value="$!name" placeholder="请输入模板名称">
						</label>
					</div>
					
	    		</div>
			</div>
		</form>
	</div>
	
</div>

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
    </div>
    <div class="portlet-body">
    	<div class="dataTables_wrapper no-footer">
			<div class="table-scrollable">
			    <table class="table table-striped table-bordered table-hover">
				  	<thead>
						<tr>
		   		 			<th>模板编码</th>
		   		 			<th>模板名称</th>
		   		 			<th>所属企业</th>
		   		 			<th>模板首页链接</th>
		   		 			<th>页面管理</th>
		   		 			<th>默认模板</th>
							<th class="col-md-2">操作</th>
						</tr>
					</thead>
					<tbody>
					#foreach($item in $defineTemplatePage.result)
		  				<tr>  
						    <td>$!item.id</td>
						    <td>$!item.name</td>
						    <td>$!item.companyName</td>
						    <td>$!item.mainUrl</td>
						    <td>
						    	#if(!$item.isSystem)
						    		<a class="ajaxify" href="/definePage/list?templateId=$!item.id"> 
									进入
									</a>
						    	#end
						    </td>
						    <td>
						    	#if($item.isDefault)
						    		√
						    	#else
						    		×
						    	#end
						    </td>
			    			<td>
			    				#if(!$item.isSystem)
			    				 <a class="btn green btn-outline btn-sm ajax-model-get  " data-toggle="modal" href="#modelContent" thref="/defineTemplate/edit?id=$!item.id&$!queryReturn"> 
									<i class="fa fa-edit"></i>编辑
								</a>
								#end
								<a class="btn green btn-outline btn-sm ajax-operation" thref="/defineTemplate/copyNew?id=$!item.id" tohref="/defineTemplate/list"> 
									<i class="fa fa-copy"></i>复制
								</a>
								#if(!$item.isDefault && !$item.isSystem)
								<a class="btn green btn-outline btn-sm ajax-delete" href="javascript:;" thref="/defineTemplate/delete?id=$!item.id">
									<i class="fa fa-trash"></i>删除
								</a>
								#end
						    </td>		  			
		  				</tr>
					#end
					</tbody>
				</table>
			</div>
			#set($page=$defineTemplatePage)
			#set($pageUrl="/defineTemplate/list?&pageNo=")
			#parse("_page.htm")
		</div>
    </div>
</div>


